package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//品牌的pojo
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Brand {
    private Integer id;
    private String brandName;//品牌名称
    private String companyName;//公司名称
    private Integer ordered;//排序
    private String description;//描述
    private Integer status;//状态

    //转换方法
    //1-->"启用",0-->"禁用"
    public String getStatusStr() {
        return status==1?"启用":"禁用";
    }
}
